﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Foothill.Master" AutoEventWireup="true" CodeBehind="ForSaleAdvancedSearch.aspx.cs" Inherits="Foothill.Web.ForSaleAdvancedSearch" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="adv-search.css" type="text/css" /> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph1" runat="server">
    
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

    <div id="sale-adv-search">
        <table class="adv-search-table">
            <tr>
                <td class="label">
                    <asp:Label ID="lblMake" runat="server" Text="品牌" CssClass="ad-search-label" />
                </td>  
                <td class="label">
                    <asp:Label ID="lblModel" runat="server" Text="车型" CssClass="ad-search-label" />   
                </td>   
            </tr>

            <tr>
                <td class="input">
                    <ajaxToolkit:ComboBox ID="ddlMake" runat="server" AutoPostBack="true" 
                        DropDownStyle="DropDownList" AutoCompleteMode="Append" CaseSensitive="false"
                        OnSelectedIndexChanged="ddlMake_OnSelectedIndexChanged" CssClass="ddl-adv-make" />
                </td>
                
                <td class="input">
                    <ajaxToolkit:ComboBox ID="ddlModel" runat="server" DropDownStyle="DropDownList" AutoCompleteMode="Append" 
                        CaseSensitive="false" CssClass="ddl-adv-model" />    
                </td>
            </tr>

            <tr>
                <td class="input">
                    <ajaxToolkit:ComboBox ID="ddlMake1" runat="server" AutoPostBack="true" 
                        DropDownStyle="DropDownList" AutoCompleteMode="Append" CaseSensitive="false"
                        OnSelectedIndexChanged="SecondMakeListSelectedIndexChanged" CssClass="ddl-adv-make" />
                </td>
                
                <td class="input">
                    <ajaxToolkit:ComboBox ID="ddlModel1" runat="server" DropDownStyle="DropDownList" AutoCompleteMode="Append" CaseSensitive="false" CssClass="ddl-adv-make" />    
                </td>
            </tr>

            <tr>
                <td class="input">
                    <ajaxToolkit:ComboBox ID="ddlMake2" runat="server" AutoPostBack="true"  
                        DropDownStyle="DropDownList" AutoCompleteMode="Append" CaseSensitive="false"
                        OnSelectedIndexChanged="ThirdMakeListSelectedIndexChanged" CssClass="ddl-adv-make" />
                </td>
                
                <td class="input">
                    <ajaxToolkit:ComboBox ID="ddlModel2" runat="server" DropDownStyle="DropDownList" AutoCompleteMode="Append" CaseSensitive="false" CssClass="ddl-adv-make" />    
                </td>
            </tr>

            <tr>
                <td class="label" colspan="2">
                    <asp:Label ID="lblYear" runat="server" Text="年份" CssClass="ad-search-label" />  
                </td>
            </tr>

            <tr>
                <td class="input" colspan="2">
                    <asp:DropDownList ID="ddlYearFrom" runat="server" CssClass="ddl-adv-search"/>
                    <span class="range-to">to</span> 
                    <asp:DropDownList ID="ddlYearTo" runat="server" CssClass="ddl-adv-search"/> 
                </td>       
            </tr>

            <tr>
                <td class="label" colspan="2">
                    <asp:Label ID="lblKilometers" runat="server" Text="里程" CssClass="ad-search-label" />
                </td>     
            </tr>

            <tr>
                <td class="input" colspan="2">
                    <asp:DropDownList ID="ddlKiloFrom" runat="server" CssClass="ddl-adv-search" />  
                    <span class="range-to">to</span>
                    <asp:DropDownList ID="ddlKiloTo" runat="server" CssClass="ddl-adv-search" />  
                </td>  
            </tr>

            <tr>
                <td class="label" colspan="2">
                    <asp:Label ID="lblPrice" runat="server" Text="价格" CssClass="ad-search-label" />
                </td>    
            </tr>
                
            <tr>
                <td class="input" colspan="2">
                    <asp:DropDownList ID="ddlPriceFrom" runat="server" CssClass="ddl-adv-search"/>  
                    <span class="range-to">to</span> 
                    <asp:DropDownList ID="ddlPriceTo" runat="server" CssClass="ddl-adv-search"/>  
                </td>
            </tr>

            <tr>
                <td class="label" colspan="2">
                    <asp:Label ID="lblTransmissionType" runat="server" Text="传动" CssClass="ad-search-label" />
                </td>
            </tr>
            <tr> 
                <td class="cbx-left" colspan="2">
                    <asp:RadioButton ID="rbtAuto" runat="server" GroupName="transMission" Text="自动" />
                    <asp:RadioButton ID="rbtManual" runat="server" GroupName="transMission" Text="手动" />
                    <asp:RadioButton ID="rbtBothTransmission" runat="server" GroupName="transMission" Text="不限" />
                </td>      
            </tr>

            <tr>
                <td class="label" colspan="2">
                    <asp:Label ID="lblCondition" runat="server" Text="车况" CssClass="ad-search-label" />
                </td>
            </tr>
            <tr> 
                <td class="cbx-left" colspan="2">
                    <asp:RadioButton ID="rbtNew" runat="server" GroupName="vehicleCondition" Text="全新" />
                    <asp:RadioButton ID="rbtUsed" runat="server" GroupName="vehicleCondition" Text="二手" />
                    <asp:RadioButton ID="rbtBoth" runat="server" GroupName="vehicleCondition" Text="不限" />
                </td>      
            </tr>

            <tr>
                 <td class="label" colspan="2">
                    <asp:Label ID="lblListingType" runat="server" Text="卖家" CssClass="ad-search-label" />
                </td>     
            </tr>

            <tr>
                <td class="cbx-left" colspan="2">
                    <asp:RadioButton ID="rbtOwner" runat="server" GroupName="ListingType" Text="车主" />
                    <asp:RadioButton ID="rbtDealer" runat="server" GroupName="ListingType" Text="车行" />
                    <asp:RadioButton ID="rbtBothTypes" runat="server" GroupName="ListingType" Text="不限" />
                </td>     
            </tr>
        </table>
        <asp:UpdatePanel ID="udp1" runat="server">
             <ContentTemplate>
                <table id="tbl-adv-search2" class="adv-search-table">
                    <tr>
                         <td class="label" colspan="2">
                            <asp:Label ID="lblLocation" runat="server" Text="城市" CssClass="ad-search-label" />
                            <asp:CheckBox ID="cbxSelectAllCity" runat="server" Text="全选" AutoPostBack="true" 
                                OnCheckedChanged="cbxSelectAllCityCheckedChanged" Checked="True" />
                        </td>      
                    </tr>
                    <tr>
                        <td class="cbx-left" colspan="2">
                            <asp:CheckBoxList ID="cblLocations" runat="server" RepeatColumns="3" />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div id="advanced-search-btn">
            <asp:LinkButton ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" class="btnSearch" />
        </div>
    
    </div>
    
</asp:Content>
